#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
  FILE* fp = fopen("log.txt","wb");
  if(!fp)
  {
    perror("fopen");
    return 1;
  }
  char* str = "你好\n";
  fwrite(str,strlen(str),1,fp);
  fclose(fp);
  return 0;
}
